<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isErrorPage="true" %>
<html>
<head>
  <title>404 - 页面未找到</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Arial', sans-serif;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .error-container {
      background: white;
      padding: 40px;
      border-radius: 10px;
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
      text-align: center;
      max-width: 500px;
      width: 90%;
    }

    .error-code {
      font-size: 80px;
      font-weight: bold;
      color: #dc3545;
      margin-bottom: 20px;
    }

    .error-title {
      font-size: 24px;
      color: #333;
      margin-bottom: 15px;
    }

    .error-message {
      color: #666;
      margin-bottom: 30px;
      line-height: 1.6;
    }

    .action-buttons {
      display: flex;
      gap: 15px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn {
      display: inline-block;
      padding: 10px 20px;
      background: #007bff;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      transition: background 0.3s;
    }

    .btn:hover {
      background: #0056b3;
    }

    .btn-home {
      background: #28a745;
    }

    .btn-home:hover {
      background: #218838;
    }

    .btn-back {
      background: #6c757d;
    }

    .btn-back:hover {
      background: #545b62;
    }
  </style>
</head>
<body>
<div class="error-container">
  <div class="error-code">404</div>
  <h1 class="error-title">页面未找到</h1>
  <p class="error-message">
    抱歉，您访问的页面不存在。<br>
    可能已被删除、移动或暂时不可用。
  </p>
  <div class="action-buttons">
    <a href="${pageContext.request.contextPath}/dashboard" class="btn btn-home">返回首页</a>
    <a href="javascript:history.back()" class="btn btn-back">返回上页</a>
    <a href="${pageContext.request.contextPath}/login" class="btn">重新登录</a>
  </div>
</div>
</body>
</html>